# Maintainer: David Runge <dvzrv@archlinux.org>

_name=lspconfig
_upstream=nvim-lspconfig
pkgname=neovim-lspconfig
pkgver=0.1.6
pkgrel=1
pkgdesc="Collection of common configurations for Neovim's built-in language server client"
arch=(any)
url="https://github.com/neovim/nvim-lspconfig"
license=(Apache)
groups=(neovim-plugins)
depends=(luajit neovim)
source=($url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz)
sha512sums=('fdadc80c579e7c6dba8d60f29be82df9889e6dfbfac2ddd136fef5e3cf8f29d3fdb22271cc6c9ec3ae6d7cc2c8dd48394374497738a9b8116520b16c99f55424')
b2sums=('fac4eea065c4e5593c8bb2f3c995e09bdfa855eac7b2dc4aeb670f7d400400c4ef78c88ef70e80881ef156bb91c3587299b6f3aff3892c7002bb69f051fb0083')

package() {
  cd $_upstream-$pkgver
  find doc lua plugin -type f -exec install -vDm 644 {} "$pkgdir/usr/share/nvim/site/pack/dist/start/$_name/{}" \;
  install -vDm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}
